package com.starinside.wp.domain.growth;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.starinside.wp.domain.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 课程 - 成长观察v2版本
 */
@Entity
@Table(name = "tc_growth_observation")
@EqualsAndHashCode(callSuper = true)
@Data
public class GrowthObservation extends Domain implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonIgnore
    private Boolean deleted = false;

    @Column(columnDefinition = "varchar(255)   COMMENT '标题' ")
    private String title;

    @Column(columnDefinition = "text   COMMENT '儿心量表' ")
    private String label;

    @Column(columnDefinition = "text   COMMENT '格赛尔发育量表' ")
    private String content;

    @Column(columnDefinition = " int DEFAULT 1 COMMENT ' 类型 ' ")
    private Integer type;

    @Column(columnDefinition = " int DEFAULT 0 COMMENT ' 月龄 ' ")
    private Integer monthAge;

    @Column(columnDefinition = " int DEFAULT 1 COMMENT ' 显示顺序 ' ")
    private Integer orderNum = 0;

    @Column(columnDefinition = " varchar(255)   COMMENT '备注' ")
    private String remark;
}